package com.intelligent.ispc.core.repository.jpa;

import com.intelligent.ispc.core.dto.ProjectDto;
import com.intelligent.ispc.core.entity.ControlChartWarningRule;
import com.intelligent.ispc.core.entity.PSAttribute;
import com.intelligent.ispc.core.entity.Project;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by xiong.yang on 2016/2/19.
 */
public interface PSAttributeDao extends PagingAndSortingRepository<PSAttribute, Long>, JpaSpecificationExecutor<PSAttribute> {
    List<PSAttribute> findByValue(String value);

    List<PSAttribute> findByName(String name);

    PSAttribute findById(Long id);

    List<PSAttribute> findByProjectId(Long id);

}
